 <?php if(!$files): ?>
 <div class="right_slider">
		<div id="sliderContent" class="ui-corner-all slider_list">		
			<div class="viewer ui-corner-all">
			<div class="content-conveyor ui-helper-clearfix">
 		<div class="bigph_slide"  style="text-align: center; width: 97px; height: 110px; padding-top: 20px; min-height: 110px;">		
			<a href="<?= Yii::app()->createUrl('/photo/profile/upload/id/'.$modelItem->id) ?>" ><img id="big_image_slide" src="<?= Yii::app()->controller->imagePath.'images/foto_zagl.png'; ?>" style="width: 97px; height:auto" ></a>
		</div>
		</div>
			</div>
			
		</div>
	</div>	
 <? else : ?>
		<? if (count($files)>=1) : ?>
	<div class="right_slider">
		<div id="sliderContent" class="ui-corner-all slider_list">		
			<div class="viewer ui-corner-all">
			<div class="content-conveyor ui-helper-clearfix">
			<?php for($i=0;$i<count($files);$i++):?>
			<?  $img = 'http://'.$_SERVER['HTTP_HOST'].Yii::app()->request->baseUrl.
		  ImageHelper::thumb('105','130','/' . $files[$i]->media_data,array('method' => 'adaptiveResize'));
		  ?>
				<div class="item">
					<a href="<?= Yii::app()->createUrl('/photo/image/'.$files[$i]->id); ?>" id="slide_<?=$i?>">
						<img src="<?=$img?>" >
					</a>
				</div>	
			<?php endfor ?>
			</div>
			</div>
			<div class="wrap_sl"><div id="slider2"></div></div>
		</div>
	</div>	
		<? endif; ?>
<? endif; ?>
